//
// Created by miaomiaole on 2023/3/30.
//

#include <iostream>
#include "Pet.h"

using namespace Pet1;

string Pet::name() const {
    return pname;
}

string Pet::description() const {
    return "This is " + pname;
}

string Dog::description() const {
    return Pet::name() + " likes to" + favoriteActivity;
}

void Dog::describe(Pet p) {
    cout << p.description() << endl;
}
